<template>
   <div class="box">
      <img src="../../assets/images/error_images/404.png" alt="">
      <el-button @click="goHome" type="primary">点我回到首页</el-button>
   </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

let $router = useRouter()
const goHome = () => {
   $router.push('./home')
}
</script>

<style lang="scss" scoped>
.box {
   width: 100vw;
   height: 100vh;
   background-color: aliceblue;

   img {
      width: 800px;
   }
}
</style>